<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link type="text/css" rel="stylesheet" href="http://127.0.0.1/0203_review/Static/hdjs/hdjs.css"/>
	<script type="text/javascript" src="http://127.0.0.1/0203_review/Static/hdjs/hdjs.min.js"></script>
</head>
<body>
	
	<div class="hd-menu-list">
	    <ul>
	        <li class="active"><a href="#">栏目列表</a></li>
	        <li><a href="<?php echo U('Category/add');?>">添加栏目</a></li>

	        <li><a href="#">更新栏目缓存</a></li>
	    </ul>
	</div>

	<table class="hd-table hd-table-list">
	    <thead>
	    <tr>
	    	<td>排序</td>
	        <td>CID</td>
	        <td>栏目名</td>
	        <td>PID</td>
	        <td>显示</td>
	        <td>目录静态</td>
	        <td>列表静态</td>
	        <td>文章静态</td>
	        <td>描述</td>
	        <td>关键词</td>
	        <td>操作</td>
	    </tr>
	    </thead>
	    <tbody>
	    <?php foreach ($category as $k=>$c){?>
		    <tr>
		    	<td><?php echo $c['sort'];?></td>
		        <td><?php echo $c['cid'];?></td>
		        <td><?php echo $c['_name'];?></td>
		        <td><?php echo $c['pid'];?></td>
		        <td><?php echo $c['is_show'];?></td>
		        <td><?php echo $c['htmldir'];?></td>
		        <td><?php echo $c['is_listhtml'];?></td>		       
		        <td><?php echo $c['is_archtml'];?></td>	
		        <td><?php echo $c['desc'];?></td>	  
		        <td><?php echo $c['keyword'];?></td>     
		        <td class="hd-w100">
		            <a href="<?php echo U('Category/edit',array('cid'=>$c['cid'],'pid'=>$c['pid']));?>">修改</a> |
		            <a href="<?php echo U('Category/add',array('pid'=>$c['cid']));?>">添加</a>
		        </td>
		    </tr>
		<?php }?>
	    </tbody>
	</table>
</body>
</html>